﻿@model List<Movies.DataModels.Movies>
    <div class="jumbotron">
        <h1>Movie List</h1>
        <a class="btn btn-primary" href="/Home/AddMovie/">Add Movie</a>
    </div>
    <div class="row">
        <div class="col-md-12">

            @foreach (var movie in Model)
            {
                <h3>@movie.Title</h3>
                <h3>@movie.Image</h3>
                <a class="btn btn-default" href="/Home/Edit/@movie.Id">Edit</a>
                <form method="post" action="/Home/Delete/@movie.Id">
                    <input type="submit" value="Delete" class="btn btn-default" /><br />
                </form>
            }




        </div>
    </div>
